import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/styles/index.scss'
import { install } from '@/icons'
import installFilter from '@/filters/index'
import ElementPlus from 'element-plus'
import i18n from './i18n/index'
import 'element-plus/dist/index.css'
import './promission'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import en from 'element-plus/es/locale/lang/en'
import installDrectives from '@/directives'
const app = createApp(App)
install(app)
installFilter(app)
installDrectives(app)
app
  .use(store)
  .use(router)
  .use(ElementPlus, {
    locale: store.getters.lang === 'zh' ? zhCn : en
  })
  .use(i18n)
  .mount('#app')
